home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 10146 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  888 b 

  1. Path: news.pi.net!news
  2. From: cat.tech@pi.net (Remy Cool)
  3. Newsgroups: comp.lang.c++
  4. Subject: How to retrieve the Handle from a Dialog
  5. Date: Wed, 06 Mar 1996 12:14:20 GMT
  6. Organization: Cool Applied Technology
  7. Message-ID: <4hjvn8$f2l@neptunus.pi.net>
  8. Reply-To: cool@pi.net
  9. NNTP-Posting-Host: hen36.pi.net
  10. X-Newsreader: Forte Free Agent 1.0.82
  11.  
  12. Hi,
  13.  
  14. I have the following problem:
  15.  
  16. I made a About Dialog (rc) and want a Bmp to be shown inside the dialog  when the dialog pops up.
  17. Showing the bitmap whith a mouse click works fine, but I can't get it drawn automatically.
  18.  
  19. When I place the 'Draw Bitmap Code' inside the TMyDialog::SetupWindow() function, the BMP is drawn
  20. on the MainWindow when I popup the Dialog.
  21. Is there a way to retrieve the Handle (HWND) from the Dialog ?
  22. So I can use it in my ' Draw Bmp Code' ?
  23.  
  24. I hope that someone has the answer.
  25.  
  26. Thanks in advance.
  27.  
  28. Regards,
  29.  
  30. Remy
  31.  
  32.  
  33.